package com.agileai.crm.module.procustomer.handler;

import java.util.*;

import com.agileai.crm.module.procustomer.service.ProcustVisitManage;
import com.agileai.domain.*;
import com.agileai.hotweb.controller.core.StandardEditHandler;
import com.agileai.hotweb.domain.*;
import com.agileai.hotweb.renders.*;
import com.agileai.util.*;

public class ProcustVisitManageEditHandler
        extends StandardEditHandler {
    public ProcustVisitManageEditHandler() {
        super();
        this.listHandlerClass = ProcustVisitManageListHandler.class;
        this.serviceId = buildServiceId(ProcustVisitManage.class);
    }

    protected void processPageAttributes(DataParam param) {
        String procustVisitEffect = this.getAttributeValue("PROCUST_VISIT_EFFECT");

        if (!StringUtil.isNullOrEmpty(procustVisitEffect)) {
            StringBuffer nameBuffer = new StringBuffer();
            //proccess nameBuffer
            setAttribute("PROCUST_VISIT_EFFECT_NAME", nameBuffer.toString());
        }
    }

    protected ProcustVisitManage getService() {
        return (ProcustVisitManage) this.lookupService(this.getServiceId());
    }
}
